package com.supermarket.api.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 购物车表
 * @author 李其伟
 * @date 2023/11/10
 */
@Data
@Entity
@Table(name = "sm_user_cart")
@org.hibernate.annotations.Table(appliesTo = "sm_user_cart",comment="购物车表")
public class CartEntity extends BaseEntity{

    @Column( name = "sku", columnDefinition = " char(64) not null comment '商品货号' ")
    private String sku;

    @Column(name = "sku_code", columnDefinition = " char(64) not null comment '商品规格' ")
    private String skuCode;

    @Column(name = "number", columnDefinition = " int(11) comment '数量' ")
    private Integer number;

    @Column(name = "shop_id", columnDefinition = " bigint(20) not null comment '店铺主键' ")
    private Long shopId;

    @Column(name = "user_id", columnDefinition = " bigint(20) not null comment '用户主键' ")
    private Long userId;

    @Column(name = "update_time", columnDefinition = " datetime comment '修改时间' ")
    private Date updateTime;


}
